package org.csmz.class2334;

public class example06 {

    public class Person {
        private String name;
        private String role;
        private String subject;
        public Person(String name,String role){
            this.name = name;
            this.role = role;
        }
        public Person(String name,String role,String subject){
            this.name = name;
            this.role = role;
            this.subject = subject;
        }
        public void print(){
            System.out.println("姓名："+ name + " ");
            System.out.println("身份："+ role + " ");
            System.out.println("教学科目："+ subject);
        }
    }
}
